<div class="purchases form">
<?php echo $this->Form->create('Purchase'); ?>
	<fieldset>
		<legend><?php echo __('Admin Edit Purchase'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('purchase_price1');
		echo $this->Form->input('purchase_price2');
		echo $this->Form->input('freight1');
		echo $this->Form->input('freight2');
		echo $this->Form->input('buying');
		echo $this->Form->input('ducamz_value');
		echo $this->Form->input('vendor_name');
		echo $this->Form->input('purchase_ref_no');
		echo $this->Form->input('purchase_by');
		echo $this->Form->input('pur_date');
		echo $this->Form->input('ship_date');
		echo $this->Form->input('ship_name');
		echo $this->Form->input('bl_no');
		echo $this->Form->input('cont_no');
		echo $this->Form->input('bol_1');
		echo $this->Form->input('stock_type');
		echo $this->Form->input('arrival_date');
		echo $this->Form->input('control_no');
		echo $this->Form->input('total_exp');
		echo $this->Form->input('buyer_company');
		echo $this->Form->input('buyer_contact');
		echo $this->Form->input('third_party');
		echo $this->Form->input('transport_date');
		echo $this->Form->input('transport_company');
		echo $this->Form->input('repair_company');
		echo $this->Form->input('repair_date');
		echo $this->Form->input('stock_id');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit')); ?>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Purchase.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Purchase.id'))); ?></li>
		<li><?php echo $this->Html->link(__('List Purchases'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('List Stocks'), array('controller' => 'stocks', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Stock'), array('controller' => 'stocks', 'action' => 'add')); ?> </li>
	</ul>
</div>
